package 综合应用.T5;

import java.util.ArrayList;
import java.util.List;

public class Dept {
    private String deptno;
    private String dname;
    private List<Emp> empList = new ArrayList<>();

    public Dept() {
    }

    public Dept(String deptno, String dname) {
        this.deptno = deptno;
        this.dname = dname;
    }

    public Dept(String deptno, String dname, List<Emp> empList) {
        this.deptno = deptno;
        this.dname = dname;
        this.empList = empList;
    }

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    public String getDeptno() {
        return deptno;
    }

    public void setDeptno(String deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }


}
